#ifndef WORLD_H
#define WORLD_H
#include "screen.h"
#include "../affiliate/collider.h"
class world :public screen{
    protected:
        glm::vec2 world_position = glm::vec2(0,0);
        collider* collider_ = nullptr;
    public:
        virtual void init() override{type_ = nodeType::NODE_WORLD;}
        virtual void update(float dt) override;

        virtual glm::vec2 getWorldPosition() const override{ return world_position;}
        void setWorldPosition(glm::vec2& position);
        virtual void setRenderPosition(const glm::vec2& position) override;
        collider* getCollider(){return collider_;}
        void set_collider(collider* collider){collider_ = collider;}
        virtual void takeDamage(float){return;}
};

#endif  // WORLD_H